home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 September / PCWorld_2006-09_cd.bin / v cisle / flyakite / FlyakiteOSX v3.5.exe / $PROGRAM_FILES / UberIcon / UberAPI / UberAPI.h < prev   
C/C++ Source or Header  |  2005-08-15  |  2KB  |  48 lines

  1. #pragma once
  2.  
  3. #include "stdafx.h"
  4.  
  5. #define UBERFUNCTION CALLBACK
  6.  
  7. struct UBER_ICON
  8. {
  9.     HWND hWnd;
  10.     int IconIndex;
  11.     int Reserved;    //Reserved for possible use in the future...
  12.     RECT rect;
  13.     wchar_t label[MAX_PATH];
  14.     Gdiplus::Bitmap* bitmap;
  15. };
  16.  
  17. enum UBER_OPTIONGROUPMODE
  18. {
  19.     UBER_GROUPMODE_NORMAL,
  20.     UBER_GROUPMODE_HIDDEN,//Invisible setting: Usefull for easily storing data that UberIcon will remember
  21.     UBER_GROUPMODE_CHECKBOX,
  22.     UBER_GROUPMODE_RADIO
  23. };
  24.  
  25. //InOut should be MAX_PATH characters long...
  26. typedef void (UBERFUNCTION *UberAPI_Translate)(wchar_t* InOut);
  27. #define Uber_Translate ((UberAPI_Translate)::GetProcAddress(GetModuleHandle(NULL), "Translate"))
  28.  
  29. typedef void (UBERFUNCTION *UberAPI_AddOption)(wchar_t* Group, wchar_t* Name, UINT Value, wchar_t* sValue);
  30. #define Uber_AddOption ((UberAPI_AddOption)::GetProcAddress(GetModuleHandle(NULL), "AddOption"))
  31.  
  32. typedef void (UBERFUNCTION *UberAPI_SetOptionGroupMode)(wchar_t* Group, UBER_OPTIONGROUPMODE Mode);
  33. #define Uber_SetOptionGroupMode ((UberAPI_SetOptionGroupMode)::GetProcAddress(GetModuleHandle(NULL), "SetOptionGroupMode"))
  34.  
  35. typedef void (UBERFUNCTION *UberAPI_SetOption)(wchar_t* Group, wchar_t* Name, UINT Value);
  36. #define Uber_SetOption ((UberAPI_SetOption)::GetProcAddress(GetModuleHandle(NULL), "SetOption"))
  37.  
  38. typedef void (UBERFUNCTION *UberAPI_SetOptionString)(wchar_t* Group, wchar_t* Name, wchar_t* sValue);
  39. #define Uber_SetOptionString ((UberAPI_SetOptionString)::GetProcAddress(GetModuleHandle(NULL), "SetOptionString"))
  40.  
  41. typedef UINT (UBERFUNCTION *UberAPI_GetOption)(wchar_t* Group, wchar_t* Name);
  42. #define Uber_GetOption ((UberAPI_GetOption)::GetProcAddress(GetModuleHandle(NULL), "GetOption"))
  43.  
  44. typedef bool (UBERFUNCTION *UberAPI_GetOptionString)(wchar_t* Group, wchar_t* Name, wchar_t* sValueOut);
  45. #define Uber_GetOptionString ((UberAPI_GetOptionString)::GetProcAddress(GetModuleHandle(NULL), "GetOptionString"))
  46.  
  47. typedef const wchar_t*(UBERFUNCTION *UberAPI_GetOptionFromGroup)(wchar_t* Group);
  48. #define Uber_GetOptionFromGroup ((UberAPI_GetOptionFromGroup)::GetProcAddress(GetModuleHandle(NULL), "GetOptionFromGroup"))